#ifndef FORWREWWID_H
#define FORWREWWID_H

#include <QGraphicsPixmapItem>
#include <QApplication>
#include <qdebug.h>
#include <QPixmap>
#include <QGraphicsSceneMouseEvent>
#include <QTime>

class forwrewWid : public QObject, public QGraphicsPixmapItem
{
        Q_OBJECT
public:
    forwrewWid(QString icon);

private:
    QPixmap * forwrewPix;
    void mousePressEvent(QGraphicsSceneMouseEvent * event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent * event);
    QTime start;
    QTime stop;

signals:
    void forwardStarted();
    void rewStarted();
    void forwardEnded(int ms);
    void rewEnded(int ms);
};

#endif // FORWREWWID_H
